package org.breezeiot.protodecode.protocol;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;

public class DataCumulant extends DataCumulantKey {
    private BigDecimal value;

    private Short batteryStatus;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public BigDecimal getValue() {
        return value;
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Short getBatteryStatus() {
        return batteryStatus;
    }

    public void setBatteryStatus(Short batteryStatus) {
        this.batteryStatus = batteryStatus;
    }
}